package com.gzhryc.socket;

public interface SocketMessage {

	public void setBytes(byte[] bytes);
	
	public byte[] getBytes();
	
	public String getString();
	
	public <T> T fromJSON(Class<T> tClass);

	public <T> T fromXML(Class<T> tClass);
	
	public Object getAttribute(String key);
	
	public void setAttribute(String key,Object obj);
	
}
